package com.wpw.dream.queue;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.DelayQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.PriorityBlockingQueue;

public class ArrayBlockingQueueTest {
	
	public static void main(String[] args) {
		ArrayBlockingQueue<Integer> abq = new ArrayBlockingQueue<>(10, true);
		//有界队列，必须指定容量
		//ArrayBlockingQueue<Integer> abq1 = new ArrayBlockingQueue<>();
		
		LinkedBlockingQueue<Integer> lbq = new LinkedBlockingQueue<>();
		LinkedBlockingQueue<Integer> lbq1 = new LinkedBlockingQueue<>(3);
		
		PriorityBlockingQueue<Integer> pbq = new PriorityBlockingQueue<>();
		PriorityBlockingQueue<Integer> pbq1 = new PriorityBlockingQueue<>(2);
		
		
	}

}
